package data.transform;

import java.io.IOException;
import java.io.Serializable;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;

import data.enums.Index;
import data.input.Data;

public class DatasMap implements Serializable {

	private static final long serialVersionUID = -3622476604688324521L;
	
	public static Map<Index, Data> datasMap () throws IOException, ParseException, ClassNotFoundException {
		
		Map<Index, Data> datasMap = new HashMap<>();

		for (Index index : Index.values()) {
			
			Data data = Data.createData(index);

			if (data != null) {
				datasMap.put(index, data);
			}
		}
		
		return datasMap;
		
	}
	
}
